using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.Common;

namespace Cz
{
    [CzService]
    public interface ICzDb : ICzBase, IDisposable
    {
        void Close();
        int Exec(string sql, params DbParameter[] parameters);
        string ExecString(string sql, params DbParameter[] parameters);
        int? ExecInt(string sql, params DbParameter[] parameters);
        object ExecObject(string sql, params DbParameter[] parameters);
        Hashtable ExecRow(string sql, params DbParameter[] parameters);
        List<Hashtable> ExecTable(string sql, params DbParameter[] parameters);

        DbParameter CreatePara(string name, object val);
    }
}